<template>
  <view class="waveform">
    <view class="bar"></view>
    <view class="bar"></view>
    <view class="bar"></view>
    <view class="bar"></view>
    <view class="bar"></view>
    <view class="bar"></view>
  </view>
</template>

<script>

</script>

<style scoped>
.waveform {
  display: flex;
  justify-content: center;
  align-items: center;
  height: 52rpx;
  width: 100%;
}

.bar {
  display: inline-block;
  height: 36rpx;
  width: 4rpx;
  margin: 0 8rpx;
  border-radius: 2px;
  background-color: #303133;
  opacity: 0.8;
  animation: wave 1s ease-in-out infinite;
}

.bar:nth-child(2) {
  animation-delay: -0.4s;
}

.bar:nth-child(3) {
  animation-delay: -0.2s;
}

.bar:nth-child(4) {
  animation-delay: 0.2s;
}

.bar:nth-child(5) {
  animation-delay: 0.4s;
}

@keyframes wave {
  0% {
    transform: scale(1, 1);
  }

  50% {
    transform: scale(1, 2);
  }

  100% {
    transform: scale(1, 1);
  }
}
</style>
